import { http } from '@/api/request'
import { LoginParams, LoginResponse } from './type'

export const loginByFormApi = (data: LoginParams) => {
    return http<LoginResponse>({
        url: '/user/login',
        method: 'POST',
        data,
    })
}
